const KoaRouter = require('koa-router')

const router = new KoaRouter()
const Model = require('../models')



router.get('/', async ctx => {

    let data = await Model.content.findAll({
        include:[
            Model.user
        ]
    })

    ctx.body = data
})

module.exports = router